package com.lhkj.ct.meta.modules.patient.converter;

import com.lhkj.ct.meta.modules.patient.model.entity.TblPatUnit;
import com.lhkj.ct.meta.modules.patient.model.entity.TblPatient;
import com.lhkj.ct.meta.modules.patient.model.vo.PatUnitForm;
import com.lhkj.ct.meta.modules.patient.model.vo.PatientForm;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

/**
 * 表单转pojo
 */
@Mapper(componentModel = "spring", unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface PFormConverter {

    PFormConverter INSTANCE = Mappers.getMapper(PFormConverter.class);

    TblPatient convertForm2Patient(PatientForm form);

    TblPatUnit convertForm2PatUnit(PatUnitForm form);

}
